# Contributor: Alex McGrath <amk@amk.ie>
# Maintainer: Alex McGrath <amk@amk.ie>
pkgname=tree-sitter-clojure
pkgver=0.0.12
pkgrel=0
pkgdesc="Clojure for tree-sitter"
url="https://github.com/sogaiu/tree-sitter-clojure"
arch="all"
license="CC0-1.0"
makedepends="tree-sitter-dev"
checkdepends="tree-sitter-cli"
install_if="tree-sitter-grammars"
source="https://github.com/sogaiu/tree-sitter-clojure/archive/v$pkgver/tree-sitter-clojure-v$pkgver.tar.gz"

build() {
	abuild-tree-sitter build
}

check() {
	tree-sitter test
}

package() {
	DESTDIR="$pkgdir" abuild-tree-sitter install
}

sha512sums="
1946c657b04307e686bee251ebeab5a74b11acf758eac0cd5e60269c0e1a9dad645966f38251e3c92b546ff25b13f2f1543d69662bb90bc991a12d1ed6dc6bb2  tree-sitter-clojure-v0.0.12.tar.gz
"
